<template>
  <div class="totalGoods">
    <GoodsItem v-for="item in goodsList" :goodsItemObj="item" :key="item.title"></GoodsItem> 
  </div>
</template>

<script>
import GoodsItem from "./GoodsItem";

export default {
  name: "TotalGoods",
  components: {
    GoodsItem,
  },
  props: {
    goodsList: {
      type: Array,
      default(){
        return [];
      }
    }
  }
}
</script>

<style scoped>
  .totalGoods{
    display: flex;
    width: 100%;
    flex-wrap:wrap;
    justify-content: space-around;
  }
</style>